import React from 'react';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import App from './App';
import store from './store/store';



const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store = {store}>
    <App/>
  </Provider>
);

//这里不用store.subscribe方法来重新渲染了
//1,现在啊我们可以用Provider,提供一个参数为store.
// 只要store发生改变,Provider就会源源不断提供数据

